import util from '../libs/util';
var qs = require('qs');

export function changePwd (value) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/auth_api/change_pwd',
        method: 'post',
        data:qs.stringify(value)
    })
}

export function logout (value) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/api/logout',
        method: 'post',
        data:qs.stringify(value)
    })
}

export function accountInfo () {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/api/account_info',
        method: 'post',
        data:qs.stringify()
    })
}
export function changeInfo (values) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/auth_api/change_info',
        method: 'post',
        data:qs.stringify(values)
    })
}